package com.example.springboot_system.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.util.Date;

/**
 * @author xgs
 * @date 2019-5-6
 * @description: 就诊队列表
 */
@Data
@TableName("his_outpatient_queue")
@Accessors(chain = true)
public class OutpatientQueue {

    @Column(name = "id")
    private String id;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_datetime")
    private Date createDatetime;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "register_id")
    private String registerId;

    @Column(name = "patient_id")
    private String patientId;

    @Column(name = "description", nullable = true, length = 50)
    private String description;

    @Column(name = "outpatient_queue_status", nullable = true, length = 2)
    private Integer outpatientQueueStatus; //   1表示正常状态，-1表示稍后处理，0过期

}
